package outils;

import vue.VuePanelClasse;

public class Operation {
	private TypesOperations type;
	private VuePanelClasse classe;
	private PaireClasse relation;
	private int x;
	private int y;
	private boolean estSauvegardee;
	private boolean continuerUndo;
	private boolean continuerRedo;


	public Operation() {
		this.continuerRedo = false;
		this.continuerUndo = false;
	}
	
	public Operation(PaireClasse pc, TypesOperations t, boolean s) {
		this();
		this.relation = pc;
		this.type = t;
		this.estSauvegardee = s;
	}
	
	public Operation(VuePanelClasse v, TypesOperations t, boolean s) {
		this();
		this.classe = v;
		this.type = t;
		this.estSauvegardee = s;
	}
	
	public Operation(VuePanelClasse v, TypesOperations t, int xx, int yy, boolean s) {
		this();
		this.classe = v;
		this.type = t;
		this.x = xx;
		this.y = yy;
		this.estSauvegardee = s;
	}
	
	public TypesOperations getType() {
		return type;
	}

	public void setType(TypesOperations type) {
		this.type = type;
	}

	public VuePanelClasse getClasse() {
		return classe;
	}

	public void setClasse(VuePanelClasse classe) {
		this.classe = classe;
	}
	
	public int getX() {
		return this.x;
	}
	
	public void setX(int xx) {
		this.x = xx;
	}
	
	public int getY() {
		return this.y;
	}
	
	public void setY(int yy) {
		this.y = yy;
	}
	
	public boolean isEstSauvegardee() {
		return estSauvegardee;
	}

	public void setEstSauvegardee(boolean estSauvegardee) {
		this.estSauvegardee = estSauvegardee;
	}
	
	public PaireClasse getRelation() {
		return relation;
	}

	public void setRelation(PaireClasse relation) {
		this.relation = relation;
	}
	
	public boolean isContinuerUndo() {
		return continuerUndo;
	}

	public void setContinuerUndo(boolean continuerUndo) {
		this.continuerUndo = continuerUndo;
	}
	
	public boolean isContinuerRedo() {
		return continuerRedo;
	}

	public void setContinuerRedo(boolean continuerRedo) {
		this.continuerRedo = continuerRedo;
	}
}
